fn main() {
    println!("Hello, world!");
    #[derive(Debug)]
    struct Person {
        name: String,
        age: u8,
    }
    let person = Person {
        name: String::from("alice"),
        age: 20,
    };

    let Person { name, ref age } = person;

    println!("the person's age is {}", age);
    println!("the person's name is {}", name);
    // println!("the person struct is {:?}", person);
    println!("the person's age from person struce is {}", person.age);
}
